Docs v3.1.0
Overview FAQ
Get Started
Installation Project Setup Build & Deploy Sample Scene
Learn
Concepts Architecture Touch Pieces Hardware
Guides
Touch Simulator Profile Switcher Player Management Pause Menu Save Game System
Reference
API Reference
More
AI Assistant Changelog Support License

Namespaces

  • Core
  • Input
  • Save
  • Session

Board

Board.Save.ImageProcessor

ImageProcessor.LoadTextureFromPNG(byte[]) Method

Converts a byte array containing PNG image data to a Texture2D.

public static Texture2D LoadTextureFromPNG(byte[] pngBytes);

Parameters

pngBytes System.Byte[]

The PNG image data as bytes.

Returns

UnityEngine.Texture2D
A UnityEngine.Texture2D containing the loaded image if successful; otherwise null.

© 2026 Harris Hill Products Inc